import App from "./App.vue";

// #ifndef VUE3
import Vue from "vue";
import "./uni.promisify.adaptor";
Vue.config.productionTip = false;
App.mpType = "app";
const app = new Vue({
  ...App,
});
app.$mount();
// #endif

// #ifdef VUE3
import { createSSRApp } from "vue";
import { createPinia } from "pinia";
// import TDesign from "tdesign-mobile-vue";
// import "@/uni.scss"
import "@/assets/css/animate.css";
// import { SquareNine } from "@nutui/nutui-bingo";
// import { Hiteggs } from "@nutui/nutui-bingo";
// import { GuessGift } from "@nutui/nutui-bingo";
import "@nutui/nutui-bingo/dist/style.css";
// import "tdesign-mobile-vue/es/style/index.css";
// import "@/assets/css/tdark.less";
// import "@/assets/css/tlight.less";
// import "bootstrap/dist/css/bootstrap.min.css";
import "@/assets/css/index.css";
// import "bootstrap-icons/font/bootstrap-icons.css";
// import "@/assets/css/bs.css";
import "@/assets/css/bootstrap-icons.css";

import "@/assets/css/utility-classes.css";
// 添加 Tailwind CSS
// import "@/assets/css/tailwind.css";
import { $url, $url2, getRandomInt } from "@/global.js";
globalThis.$url = $url;
globalThis.$url2 = $url2;
globalThis.getRandomInt = getRandomInt;
export function createApp() {
  const app = createSSRApp(App);
  const pinia = createPinia();


  // app.use(GuessGift);
  // app.use(SquareNine);
  // app.use(Hiteggs);

  app.use(pinia);


  return {
    app,
  };
}

// #endif
